<template>
  <div class="goods">
      <div class="main">
            <div class="show">
                    <img src="4.png" alt="">
                </div>
                <div class="price">
                    <div class="left">
                        <p>
                            <b>$</b>
                            <span>0.1</span>
                            <i>限购一件</i>
                        </p>
                        <p>附近9081个人买过</p>
                    </div>
                    <div class="right">
                        <p>新人专享</p>
                        <p>
                            <span>13</span><i>:</i>
                            <span>12</span><i>:</i>
                            <span>23</span>
                        </p>
                    </div>
                </div>

                <div class="info">
                    <h4>[发单罐]冠虎维生素强化饮料250ml/罐</h4>
                    <div class="info-mid">
                        <p>
                            <span>生产日期|2021-06-01</span>
                            <span>保质期|18个月</span>
                            <span>常温</span>
                        </p>
                        <div>
                            <span>-</span>
                            <i>1</i>
                            <span>+</span>
                        </div>
                    </div>
                    <p><span></span>23点前下班,次日16点前门店自提</p>
                </div>

                <div class="shouhou">
                    <span>售后无忧</span>|
                    <i>品质保证 无理由退换货 晚到必...</i>
                </div>

                <div class="pingjia">
                    <span>商品评价(1071)</span>
                    <span>查看全部&gt;</span>
                </div>

                <div class="pingjia-info">
                    <span>包装好(57)</span><span>香甜可口(7)</span><span>价格实惠(5)</span>
                </div>
      </div>
      <div class="pay">
        <p><span></span>买菜</p>
        <p><span></span>购物车</p>
        <p @click="pay()"><span>$0.1</span><span>去支付</span></p>
      </div>
      
  </div>
</template>

<script>
export default {
    methods: {
        pay(){
        this.$router.push({path:'/gouwuche'});
        }
    },
}
</script>

<style scoped>
.goods{
    display: flex;

}
    .main{
        flex: 1;
        overflow: scroll;
    }
    .show{
        width:100%;
        height: 4rem;
        position: relative;
    }
    .show img{
        width:100%;
        height: 100%;
        position: absolute;
        top:0;
        left:0;
    }
    .price{
        width:100%;
        height: 0.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #e02e24;
        padding:0 0.1rem;
        box-sizing: border-box;
    }
    .price .left p:first-of-type b{
        font-size: 0.14rem;
        color:#fffdff;
    }
    .price .left p:first-of-type span{
        font-size: 0.28rem;
        color:#fffdff;
    }
    .price .left p:first-of-type i{
        display: inline-block;
        width:0.74rem;
        height: 0.28rem;
        background-color: #f7dabd;
        text-align: center;
        line-height: 0.28rem;
        font-size: 0.15rem;
        color:#da261a;
        border-radius: 0.14rem;
    }
    .price .left p:last-of-type{
        color:#fffdff;
        font-size: 0.17rem;
        margin-top:0.05rem;
    }
    .price .right{
        height: 100%;
        background-color: #d51910;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding:0 0.1rem;
    }
    .price .right p:first-of-type{
        font-size: 0.18rem;
        color:#fffdff;
    }
    .price .right p:last-of-type{
        color:#fffdff;
        line-height: 0.23rem;
        margin-top: 0.05rem;
    }
    .price .right p:last-of-type span{
        display: inline-block;
        width:0.23rem;
        height: 0.23rem;
        background-color: #bb0801;
        text-align: center;
    }
    .info{
        width:100%;
        height: 1.15rem;
        border-bottom:0.02rem solid #f7f7f5;
    }
    .info h4{
        font-size: 0.2rem;
        line-height: 0.36rem;
    }
    .info-mid{
        display: flex;
        justify-content: space-between;
        height: 0.5rem;
        align-items: center;
        padding:0 0.1rem;
        box-sizing: border-box;
    }
    .info-mid p:first-of-type span{
        border:0.01rem solid #e7e7e5;
        font-size: 0.14rem;
        display: inline-block;
        padding: 0.02rem 0.05rem;
        margin-right:0.05rem;
    }
    .info-mid div:first-of-type span{
        display: inline-block;
        height: 0.23rem;
        width:0.23rem;
        border:0.02rem solid #c12027;
        text-align: center;
        line-height: 0.23rem;
        color:white;
        font-size: 0.20rem;
    }
    .info-mid div:first-of-type i{
        margin:0 0.03rem;
    }
    .info-mid div:first-of-type span:first-of-type{
        color:#c12027
    }
    .info-mid div:first-of-type span:last-of-type{
        background-color: #c12027;
    }
    .info >p:last-of-type{
        padding:0 0.1rem;
        box-sizing: border-box;
        font-size: 0.17rem;
    }
    .shouhou{
        height: 0.45rem;
        width:100%;
        line-height: 0.45rem;
        padding: 0 0.1rem;
        border-bottom:0.1rem solid #e7e7e5;
        box-sizing: border-box;
    }
    .shouhou span{
        font-size: 0.18rem;
        color:#009c00;
        font-weight: bold;
        margin-right:0.03rem;
    }
    .shouhou i{
        color:#393937;
        font-size: 0.17rem;
    }
    .pingjia{
        height: 0.45rem;
        width:100%;
        padding:0 0.1rem;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom:0.01rem solid #e7e7e5;
    }
    .pingjia span:first-of-type{
        font-size: 0.17rem;
        font-weight: 500;
    }
    .pingjia span:last-of-type{
        color:#8f8f8f;
    }
    .pingjia-info{
        padding:0.05rem 0.1rem;
    }
    .pingjia-info span{
        display: inline-block;
        background-color: #ffecec;
        padding:0.05rem 0.08rem;
        margin-right:0.08rem;
    }
    .pay{
        height:0.7rem;
        width:100%;
        display: flex;
    }
    .pay p:not(:nth-of-type(3)){
        width:0.6rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .pay p:last-of-type{
        flex:1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #e22d24;
        color:#fdfefa;
        font-size: 0.2rem;
    }
</style>